package com.ting.etp.main.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ting.etp.main.entity.TestTableOne;
import com.ting.etp.main.entity.TestTableOneMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 10428
 */
@Service
@Slf4j
public class TestTableOneServiceImpl extends ServiceImpl<TestTableOneMapper, TestTableOne> implements TestTableOneService {

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void saveOne(String name){
        TestTableOne testTableOne = new TestTableOne();
        testTableOne.setName(name);
        save(testTableOne);
    }
}
